package com.iflytek.uoamp.agent.monitor.find.imp.baseitem;

import java.util.Properties;

public class FindBaseMonitorItemFactory {

	public static FindBaseMonitorItemAbs getBaseMonitorItemFinder(String path) {
		Properties props = System.getProperties();
		String osName = props.getProperty("os.name");
		if (osName.toLowerCase().contains("windows")) {
			return new FindWinBaseMonitorItem(path);
		} else {
			return new FindLinuxBaseMonitorItem(path);
		}
	}
}
